package com.nbsaas.boot.common.rest.convert;

import com.nbsaas.boot.common.data.entity.Modular;
import com.nbsaas.boot.common.api.domain.request.ModularRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 模块请求对象转换成实体对象
*/

public class ModularEntityConvert  implements Converter<Modular, ModularRequest> {

    @Override
    public Modular convert(ModularRequest source) {
        Modular result = new Modular();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

